package 博客.工厂模式.工厂方法;


//Car接口
public interface Car {
}

//奥迪
class Audi implements Car {
}

//宝马
class BMW implements Car {
}

//奔驰
class Benz implements Car {
}

//劳斯莱斯
class RollsRoyce implements Car {
}
